package com.alliky.core.data;

import com.alliky.core.api.ApiService;
import com.alliky.core.net.RxRetrofit;


public class Injection {
    public static DataRepository provideRepository() {
        ApiService apiService = RxRetrofit.getInstance().create(ApiService.class);
        //两条分支组成一个数据仓库
        return DataRepository.getInstance(apiService);
    }
}
